package com.sy.service.impl;

import com.sy.entity.Announcement;
import com.sy.service.AnnouncementService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnnouncementServiceImpl extends BaseServiceImpl implements AnnouncementService {
    @Override
    public List<Announcement> getAnnouncement(Integer count) {
     List<Announcement> tenAnnouncements = announcementMapper.getTenAnnouncements(count);
     return tenAnnouncements;
    }
}
